package com.ruoyi.gybj.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息推送记录对象 gybj_message_record
 * 
 * @author ruoyi
 * @date 2025-11-19
 */
public class MessageRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 报警记录ID */
    @Excel(name = "报警记录ID")
    private Long alarmRecordId;

    /** 消息策略id */
    @Excel(name = "消息策略id")
    private Long strategyId;

    /** 推送类型：首推、提级 */
    @Excel(name = "推送类型：首推、提级")
    private String pushCategory;

    /** 推送范围：企业微信、站内信 */
    @Excel(name = "推送范围：企业微信、站内信")
    private String pushScope;

    /** 推送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pushTime;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private Long receiverId;

    /** 接收人姓名 */
    @Excel(name = "接收人姓名")
    private String receiverName;

    /** 推送状态: 1成功  0失败 */
    @Excel(name = "推送状态: 1成功  0失败")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAlarmRecordId(Long alarmRecordId) 
    {
        this.alarmRecordId = alarmRecordId;
    }

    public Long getAlarmRecordId() 
    {
        return alarmRecordId;
    }

    public void setStrategyId(Long strategyId) 
    {
        this.strategyId = strategyId;
    }

    public Long getStrategyId() 
    {
        return strategyId;
    }

    public void setPushCategory(String pushCategory) 
    {
        this.pushCategory = pushCategory;
    }

    public String getPushCategory() 
    {
        return pushCategory;
    }

    public void setPushScope(String pushScope) 
    {
        this.pushScope = pushScope;
    }

    public String getPushScope() 
    {
        return pushScope;
    }

    public void setPushTime(Date pushTime) 
    {
        this.pushTime = pushTime;
    }

    public Date getPushTime() 
    {
        return pushTime;
    }

    public void setReceiverId(Long receiverId) 
    {
        this.receiverId = receiverId;
    }

    public Long getReceiverId() 
    {
        return receiverId;
    }

    public void setReceiverName(String receiverName) 
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName() 
    {
        return receiverName;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("alarmRecordId", getAlarmRecordId())
            .append("strategyId", getStrategyId())
            .append("pushCategory", getPushCategory())
            .append("pushScope", getPushScope())
            .append("pushTime", getPushTime())
            .append("receiverId", getReceiverId())
            .append("receiverName", getReceiverName())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
